#include "bucketzomb.h"

bucketzomb::bucketzomb() {
    m_bucketzomb.load(BUCKETZOMB_PATH);
    m_X=GAME_WIDTH;
    m_Y=0;
    m_Free=true;
    m_speed=BUCKETZOMB_SPEED;
    m_Rect.setWidth(m_bucketzomb.width());
    m_Rect.setHeight(m_bucketzomb.height());
    m_Rect.moveTo(m_X,m_Y);
}
    void bucketzomb::updatePosition()
    {
        if(m_Free){
            return;
        }

        m_X-=m_speed;
        m_Rect.moveTo(m_X,m_Y);

    }
